# Maintainer: Thomas Liske <thomas@fiasko-nw.net>
pkgname=py3-pyroute2.core
_pkgname=pyroute2.core
pkgver=0.6.9
pkgrel=0
pkgdesc="Python Netlink library: core"
url="https://github.com/svinota/pyroute2"
arch="noarch"
license="GPL-2.0-or-later OR Apache-2.0"
makedepends="py3-setuptools"
options="!check" # not supported for pr2modules namespace
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"

	# do not ship cli scripts for now
	rm -rf "$pkgdir/usr/bin"
}

sha512sums="
bd5e14e39f8a786e645d523e3b966b94a8795dc2446db12fdde0cf9c84c63f1645e4b6eb82f95657b4f293f55762dd98fae16ad1f2ce531a942cb13868fa76e5  pyroute2.core-0.6.9.tar.gz
"
